package com.gxa.k12.course.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.k12.common.util.PageUtils;
import com.gxa.k12.common.util.Query;
import com.gxa.k12.course.dao.CourseDescriptionDao;
import com.gxa.k12.course.entity.CourseDescriptionEntity;
import com.gxa.k12.course.service.CourseDescriptionService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("courseDescriptionService")
public class CourseDescriptionServiceImpl extends ServiceImpl<CourseDescriptionDao, CourseDescriptionEntity> implements CourseDescriptionService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CourseDescriptionEntity> page = this.page(
                new Query<CourseDescriptionEntity>().getPage(params),
                new QueryWrapper<CourseDescriptionEntity>()
        );

        return new PageUtils(page);
    }

}